package com.itgaoshu.hospitalproject.service.impl;

import com.itgaoshu.hospitalproject.bean.Skull;
import com.itgaoshu.hospitalproject.mapper.SkullMapper;
import com.itgaoshu.hospitalproject.service.SkullService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Service
@Transactional
public class SkullServiceImpl implements SkullService {
    @Autowired
    private SkullMapper skullMapper;

    @Override
    public List<Skull> findAllSkull(String skullName) {
        return skullMapper.findAllSkull(skullName);
    }

    @Override
    public int addSkull(Skull skull) {
        return skullMapper.addSkull(skull);
    }

    @Override
    public int count(Skull skull) {
        return skullMapper.count(skull);
    }

    @Override
    public int deleteSkull(int skullId) {
        return skullMapper.deleteSkull(skullId);
    }

    @Override
    public int editSkull(Skull skull) {
        return skullMapper.editSkull(skull);
    }
}
